from django.contrib import admin
from buddha.models import UsersProfile, BuddhaWords, BuddhaNav, SystemConfig, LastSearch, FriendLink


class UsersProfileAdmin(admin.ModelAdmin):
    list_display = ("image", "nick_name", "birthday", "gender", "address", "phone")


class BuddhaWordsAdmin(admin.ModelAdmin):
    list_display = ('name', "description", "analysis", "video", "audio", "photo")

    # class Meta:
    #     label = '心理症状词条'
    # pass


class BuddhaNavsAdmin(admin.ModelAdmin):
    list_display = ('name', "histroy", "celebrity", "organization", "about_us")

    # class Meta:
    #     label = '导航栏管理'
    # pass


class SystemConfigAdmin(admin.ModelAdmin):
    list_display = ('name', 'logo')

    # class Meta:
    #     label = '系统配置'
    # pass


class LastSearchAdmin(admin.ModelAdmin):
    list_display = ('name',)

    # class Meta:
    #     label = '最近搜索关键字'


class FriendLinkAdmin(admin.ModelAdmin):
    list_display = ('name',)

    # class Meta:
    #     label = '友情链接'


admin.site.register(UsersProfile, UsersProfileAdmin)
admin.site.register(BuddhaWords, BuddhaWordsAdmin)
admin.site.register(BuddhaNav, BuddhaNavsAdmin)
admin.site.register(SystemConfig, SystemConfigAdmin)
admin.site.register(LastSearch, LastSearchAdmin)
admin.site.register(FriendLink, FriendLinkAdmin)
